﻿using Pay.DTO;
using Pay.TO;

namespace Pay.IService {
    public interface IMarketingPromoterService {
        /// <summary>
        /// 获取我的业务员信息
        /// </summary>
        /// <param name="userId"></param>
        /// <returns></returns>
        marketing_user_promoter_info_dto GetMyPromoterInfo(long userId);
        /// <summary>
        /// 购买节点名额
        /// </summary>
        /// <param name="model"></param>
        /// <param name="userId"></param>
        /// <returns></returns>
        bool BuyMakerQuota(buy_maker_quota_model model, long userId);
        /// <summary>
        /// 申请发展业务员
        /// </summary>
        /// <param name="model"></param>
        /// <param name="userId"></param>
        /// <returns></returns>
        bool ApplyOpenUserType(apply_user_type_model model, long userId);
        /// <summary>
        /// 邀请好友开通
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        bool InviteOpenUserType(invite_user_type_model_ex model);
        /// <summary>
        /// 根据手机号获得其市级分公司
        /// </summary>
        /// <param name="mobile"></param>
        /// <returns></returns>
        merchant_dto GetCityCompanyMerchantByMobile(string mobile);
        /// <summary>
        /// 业务员详细分页列表
        /// </summary>
        /// <param name="query"></param>
        /// <param name="userId"></param>
        /// <returns></returns>
        PagedResult<promoter_list_model> GetPromoterPageList(MarketingPromoterQuery query, long userId);
    }
}
